<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
  
    <h:outputStylesheet library="css" name="default.css"/>
    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>ProjectManager</title>
            </f:facet>
        </h:head>

        <h:body>
            <h:form id="principal_form">
                <p:layout fullPage="true">

                    <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                        Header
                    </p:layoutUnit>

                    <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                        Footer
                    </p:layoutUnit>

                    <p:layoutUnit position="west" size="185" header="Left" collapsible="true">
                       <p:menu>
                            <p:submenu label="Menú">

                                <p:menuitem   value="Carreras" action="#{CtrlPaginas.cargarCarreras()}" update=":principal_form:frmContent:pnlContent" /> 
                                <p:menuitem  value="Alumnos" action="#{CtrlPaginas.cargarAlumnos()}" update=":principal_form:frmContent:pnlContent" />
                                <p:menuitem  value="Directores" action="#{CtrlPaginas.cargarDirectores()}" update=":principal_form:frmContent:pnlContent" />
                                <p:menuitem  value="Proyectos" action="#{CtrlPaginas.cargarProyectos()}" update=":principal_form:frmContent:pnlContent" />
                            </p:submenu>   
                      </p:menu>
       
                    </p:layoutUnit>

                    <p:layoutUnit position="center">
                         <h:form id="frmContent">
                          <p:panel id="pnlContent">
                            <ui:include src="#{CtrlPaginas.page}" />
                         </p:panel>   
                        </h:form>
                    </p:layoutUnit>
                </p:layout>
            </h:form>
        </h:body>
    </f:view>
</html>

